package com.nightpiter.exceptions;

import com.nightpiter.model.objects.Station;

/**
 * NoWayDijkstraException class. Should be thrown when there is no way between
 * two stations
 * 
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 */
@SuppressWarnings("serial")
public class StationNotFoundDijkstraException extends DijkstraException {
	/**
	 * standard error message
	 */
	private static final String MESSAGE = "The station does not belong to the model";

	/**
	 * constructor without arguments
	 */
	public StationNotFoundDijkstraException() {
		super(MESSAGE);
	}

	/**
	 * @param detailMessage
	 */
	public StationNotFoundDijkstraException(String detailMessage) {
		super(MESSAGE + " : " + detailMessage);
	}

	/**
	 * @param throwable
	 */
	public StationNotFoundDijkstraException(Throwable throwable) {
		super(throwable);
	}

	/**
	 * @param detailMessage
	 * @param throwable
	 */
	public StationNotFoundDijkstraException(String detailMessage,
			Throwable throwable) {
		super(MESSAGE + " : " + detailMessage, throwable);
	}

	/**
	 * @param station
	 *            the station which expected to belong to the model
	 */
	public StationNotFoundDijkstraException(Station station) {
		super(MESSAGE + " : " + station);
	}
	
}
